import Layout from '@/layout/index.vue'

export default {
  path: '/device-manage',
  name: 'EquipmentManage',
  meta: { title: '设备纳管' },
  component: Layout,
  // redirect: '/example/index',
  children: [
    {
      path: 'auth-policy',
      name: 'AuthPolicy',
      meta: { title: '认证策略' },
      component: () => import('@/views/equipment-manage/auth-policy/index.vue'),
    },
    {
      path: 'device-management',
      name: 'Equipment',
      meta: {
        title: '设备通道管理',
        componentName: 'Equipment',
        keepAlive: ['EquipmentDetails', 'InspectionHistory'],
      },
      component: () => import('@/views/equipment-manage/equipment/index.vue'),
    },
    {
      path: 'device-find',
      name: 'DeviceFind',
      meta: { 
        title: '设备发现',
        componentName: 'Equipment',
        keepAlive: ['EquipmentDetails'],
        pageType: 'f'
      },
      component: () => import('@/views/equipment-manage/equipment/index.vue'),
    },
    {
      path: 'device-management/details',
      name: 'EquipmentDetails',
      meta: {
        title: '设备管理详情',
        hidden: true,
      },
      component: () =>
        import('@/views/equipment-manage/equipment/details/index.vue'),
    },
    {
      path: 'device-management/inspection-history',
      name: 'InspectionHistory',
      meta: {
        title: '监测历史',
        hidden: true,
      },
      component: () =>
        import(
          '@/views/equipment-manage/equipment/inspection-history/index.vue'
        ),
    },
  ],
}
